<extend name="./masterHome" />
<block name="content">

</div>
<!--头部结束-->
<!--中间开始-->
<div id="content">
    <div class="list">
        <div class="main">
            <h4 class="listoption"><a href="#">首页</a>&gt;
                <foreach name="fatherData" item="v">&gt;
                <a href="{$v['cid']}">{$v['cname']}</a>
                </foreach>
            </h4>
            <style>
                .list .postion dl dd a.red{
                    color:red;
                }
            </style>
            <div class="postion">
                <foreach name="finalTemp" key="k" item="v">
                    <?php
								$temp = $param;

								$temp[$k]=0;
							?>

                <dl>
                    <dt>{$v['name']}:</dt>

                    <dd>
                        <a <if condition="$param[$k]==0">class="red"</if> href="{:u('home/listPage/index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}">不限</a>
                        <foreach name="v['value']" item="vo">
                            <!--<?php dd($vo['gaid'])?>-->
                            <?php $temp[$k]=$vo['gaid']?>
                            <a <if condition="$param[$k]==$vo['gaid']">class="red"</if> href="{:u('home/listPage/index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}">{$vo['gtvalue']}</a>
                        </foreach>
                    </dd>

                </dl>
                </foreach>
                </dl>


        </div>
    </div>

    <div class="listcontent">
        <foreach name="data" key="k" item="v">
        <div class="main">
            <ul>
                <li>
                    <div class="listdesc">
                        <dl class="desc">
                            <a href="{:u('home/content/index',['gid'=>$v['gid']])}" class="pro_list">
                                <dt class="pic"><img class="lazy" src="__ROOT__/{$v['pic']}"  alt="360手机f4标准版移动4G魔力白"></dt>
                                <dd class="cont">
                                    <span class="title">{$v['gname']}</span>
                                    <span class="price">{$v['marketprice']}元</span>
                                </dd>
                            </a>
                            <dd class="btns">
                                <a href="javascript:;" class="add-cart" ><i></i><em>加入购物车</em></a>
                            </dd>
                        </dl>
                    </div>

                </li>




            </ul>
        </div>
        </foreach>
    </div>


</div>
</div>

</block>